package com.alibaba.cloud.exception;

import com.alibaba.cloud.enums.ResultCodeEnum;

import lombok.Getter;

/**
 * @Description: 锁异常处理
 * @author: zhb zhb1316783262@163.com
 * @date: 2018年5月23日 下午2:00:19
 */
@Getter
public class LockException extends RuntimeException {

	private static final long serialVersionUID = 1807846755988910747L;

	private ResultCodeEnum codeEnum;

	public LockException(ResultCodeEnum codeEnum, String message) {
		super(message);
	}

	public LockException(ResultCodeEnum codeEnum, String message, Throwable cause) {
		super(message);
		this.codeEnum = codeEnum;
	}

}
